<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>修改密码</title>
</head>
<body>
<form style="width: 50%;margin: 0 auto" th:action="@{/user/update_password}" method="post" onsubmit="checkArgument()">
    <label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
    <input type="text" name="password" id="password"/>
    <br/>
    <label>确认密码:</label>
    <input type="text" name="re_password" id="re_password"/>
    <br/>
    <input type="submit"/>
</form>
</body>
<script th:src="@{/TFSystem/js/jquery.min.js}"></script>
<script th:src="@{/TFSystem/layer/layer.js}"></script>
<script type="text/javascript">
    function checkArgument() {
        var password = $("#password").val();
        var re_password = $("#re_password").val();
        if (password !== re_password) {
            layer.msg('两次输入的密码不一致', {
                time: 2000
            });
            return false;
        }
        return true;
    }
</script>
</html>